/*
 * @Author: your name
 * @Date: 2021-12-07 20:27:45
 * @LastEditTime: 2021-12-07 20:38:01
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \12.7作业\zuoye\src\css\list.js
 */
import Mock from 'mockjs'
const data = Mock.mock({
    'list|20': [{
        title: '@ctitle(2,8)',
        img: '@image(150x200,@color)',
    }]
})
ul.innerHTML = data.list.map(item => {
    return `
    <li>
    <img src='${item.img}'/>
    <h3>${item.title}</h3>
    </li>
    `
}).join('')